package cn.seecoder.ai.model.po;

import cn.seecoder.ai.dao.converter.ObjectConverter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 文件字段
 * @author fanyanpeng
 * @date 2023/4/9 22:14
 */

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "file_field", schema = "seecoder_ai", catalog = "")
public class FileField {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @Column(name = "id")
    private Integer id;

    @Basic
    @Column(name = "file_info_id")
    private Integer fileInfoId;

    @Basic
    @Column(name = "field_name")
    private String fieldName;

    @Basic
    @Column(name = "null_rate")
    private Double nullRate;

    @Basic
    @Column(name = "data_type")
    private String dataType;

    @Convert(converter = ObjectConverter.class)
    @Column(name = "mode")
    private Object mode;

}
